import request from '@/utils/request'

// 查询设备心跳列表
export function listDeviceHeartbeat(query) {
  return request({
    url: '/genius/platform-device-heartbeat/list',
    method: 'get',
    params: query
  })
}

// 查询设备心跳详细信息
export function getDeviceHeartbeatInfo(id) {
  return request({
    url: '/genius/platform-device-heartbeat/' + id,
    method: 'get'
  })
}

// 新增设备心跳
export function adddeviceHeartbeat(query) {
  return request({
    url: '/genius/platform-device-heartbeat',
    method: 'post',
    data: query
  })
}

// 修改设备心跳
export function updateDeviceHeartbeat(query) {
  return request({
    url: '/genius/platform-device-heartbeat',
    method: 'put',
    data: query
  })
}

// 删除产品信息
export function deldeviceHeartbeat(id) {
  return request({
    url: '/genius/platform-device-heartbeat/' + id,
    method: 'delete'
  })
}

// 导出设备心跳
export function exportDeviceHeartbeat() {
    return request({
      url: '/genius/platform-device-heartbeat/export',
      method: 'post'
    })
  }

